{% extends "bootstrap/base.html" %}

{% block title %}罗格运维{% endblock %}

{% block head %}
{{ super() }}
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}" type="image/x-icon">
<link rel="icon" href="{{ url_for('static', filename='favicon.ico') }}" type="image/x-icon">
<meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/bootstrap.css') }}" >
<link rel="stylesheet" type="text/js" href="{{ url_for('static', filename='js/bootstrap.js') }}" >
<link rel="stylesheet" type="text/js" href="{{ url_for('static', filename='js/jQuery-1.12.4.min.js') }}" >
<link rel="stylesheet" type="text/js" href="{{ url_for('static', filename='js/scripts.js') }}" >
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/myapp.css') }}" >
{% endblock %}

{% block navbar %}
<div class="navbar navbar-inverse" role="navigation">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">WEB综合管理系统</a> <!--Home按钮,点击后返回index.html-->
        </div>
        <div class="navbar-collapse collapse">
            <!--<ul class="nav navbar-nav">
                <li><a href="{{ url_for('main.index') }}">Logread</a></li>
            </ul>-->
            <ul class="nav navbar-nav navbar-right">
                {% if current_user.is_authenticated %}
                <li><a href="{{ url_for('auth.logout') }}">Log Out</a></li>
                {% else %}
                <li><a href="{{ url_for('auth.login') }}">Log In</a></li>
                {% endif %}
            </ul>
        </div>
    </div>
</div>
{% endblock %}

{% block content %}
<div class="container">
    {% for message in get_flashed_messages() %}
    <div class="alert alert-warning">
        <button type="button" class="close" data-dismiss="alert">&times;</button>
        {{ message }}
    </div>
    {% endfor %}

    {% block page_content %}{% endblock %}
</div>
{% endblock %}

{% block scripts %}
{{ super() }}
{{ moment.include_moment('2.10.3', '//cdn.bootcss.com/moment.js/2.10.3/moment-with-locales.min.js') }}
{% endblock %}
